
Pod::Spec.new do |s|
  s.name             = 'CJPack'
  s.version          = '1.0.57'
  s.summary          = 'A short description of CJPack.'

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/giteecjw0124/cjpack'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'giteecjw0124' => 'chenjingwei0124@foxmail.com' }
  s.source           = { :git => 'https://gitee.com/giteecjw0124/cjpack.git', :tag => s.version.to_s }

  s.ios.deployment_target = '13.0'
  s.swift_version = '5.0'
  s.frameworks = 'UIKit', 'Foundation', 'CoreText', 'QuartzCore', 'CFNetwork'
  
  s.subspec 'Macro' do |m|
    m.source_files = 'CJPack/CJPackSwift/Classes/Macro/*'
  end
  
  s.subspec 'Core' do |e|
    e.dependency 'CJPack/Macro'
    e.source_files = 'CJPack/CJPackSwift/Classes/Core/*'
  end
  
  s.subspec 'Exten' do |r|
    r.dependency 'CJPack/Macro'
    r.dependency 'CJPack/Core'
    r.source_files = 'CJPack/CJPackSwift/Classes/Exten/*'
  end
  
  s.subspec 'Skin' do |s|
    s.dependency 'CJPack/Macro'
    s.dependency 'CJPack/Core'
    s.dependency 'CJPack/Exten'
    s.source_files = 'CJPack/CJPackSwift/Classes/Skin/*'
  end
  
  s.subspec 'Frame' do |f|
    f.dependency 'CJPack/Macro'
    f.dependency 'CJPack/Core'
    f.dependency 'CJPack/Exten'
    f.dependency 'CJPack/Skin'
    f.source_files = 'CJPack/CJPackSwift/Classes/Frame/*'
  end
  
  s.subspec 'CJCharts' do |c|
    c.dependency 'CJPack/Macro'
    c.dependency 'CJPack/Core'
    c.dependency 'CJPack/Exten'
    c.source_files = 'CJPack/CJPackSwift/Classes/Vendor/CJChartsView/*'
  end
  
  s.subspec 'CJHud' do |h|
    h.dependency 'CJPack/Macro'
    h.dependency 'CJPack/Core'
    h.dependency 'CJPack/Exten'
    h.source_files = 'CJPack/CJPackSwift/Classes/Vendor/CJHudView/*'
    h.resources = ['CJPack/CJPackSwift/Classes/Vendor/CJHudView/*.{xcassets}']
  end
  
  s.subspec 'CJPopup' do |p|
    p.dependency 'CJPack/Macro'
    p.dependency 'CJPack/Core'
    p.dependency 'CJPack/Exten'
    p.source_files = 'CJPack/CJPackSwift/Classes/Vendor/CJPopupView/*'
  end
  
  s.subspec 'CJMenuView' do |m|
    m.dependency 'CJPack/Macro'
    m.dependency 'CJPack/Core'
    m.dependency 'CJPack/Exten'
    m.source_files = 'CJPack/CJPackSwift/Classes/Vendor/CJMenuView/*'
  end
  
  s.subspec 'Escrow' do |e|
    e.dependency 'CJPack/Macro'
    e.dependency 'CJPack/Core'
    e.dependency 'CJPack/Exten'
    e.dependency 'SDWebImage'
    e.dependency 'SnapKit'
    e.dependency 'MJRefresh'
    e.source_files = 'CJPack/CJPackSwift/Classes/Escrow/*'
    e.resources = ['CJPack/CJPackSwift/Classes/Escrow/*.{xcassets}']
  end
  
  s.subspec 'CJHttpManager' do |h|
    h.dependency 'CJPack/Macro'
    h.dependency 'CJPack/Core'
    h.dependency 'CJPack/Exten'
    h.dependency 'Alamofire'
    h.dependency 'HandyJSON'
    h.source_files = 'CJPack/CJPackSwift/Classes/Vendor/CJHttpManager/*'
  end
  
end
